package com.jin.lazytool.rewritte;

import com.jin.lazytool.task.ThreadUtils;
import javafx.concurrent.Task;
public abstract class FxJinTask<T> extends Task<T> {

    private int type;

    public void stop(){
        cancel();
    }

    public void start(){
        ThreadUtils.start(this);
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }
}
